﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
using DTO;
using System.Collections;
namespace BUS
{
   public  class PanelBUS
    {
 
        public List<PanelDTO> GetAllActiveMainPanels()
        {
            PanelREP acc = new PanelREP();
            return acc.GetAllActiveMainPanels();
        }

        public List<PanelDTO> GetAllActiveSubPanels()
        {
            PanelREP acc = new PanelREP();
            return acc.GetAllActiveSubPanels();
        }

        public List<PanelDTO> GetActiveMainPanels(int positionID)
        {
            PanelREP acc = new PanelREP();
            return acc.GetActiveMainPanels(positionID);
        }

        public List<PanelDTO> GetActiveSubPanels(int? mainPanelID)
        {
            PanelREP acc = new PanelREP();
            return acc.GetActiveSubPanels(mainPanelID);
        }

        public bool AddPanel(PanelDTO newAccount)
        {
            PanelREP acc = new PanelREP();
            return acc.AddPanel(newAccount);
        }
        public void DeletePanel(int AccountID)
        {
            PanelREP acc = new PanelREP();
            acc.DeletePanel(AccountID);
        }
        public bool UpdatePanel(PanelDTO accountup)
        {
            PanelREP acc = new PanelREP();
            return acc.UpdatePanel(accountup);
        }

        public void ReOrder(ArrayList l)
        {
            PanelREP acc = new PanelREP();
            acc.ReOrder(l);
        }
    }
}